package com.jarvis.pzz;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.jarvis.pzz.models.VCModel;

import java.util.List;

/**
 * Created by jarvis.liu on 9/12/2016.
 */
public class VcAdapter extends BaseQuickAdapter<VCModel> {

    private VcAdapter customerAdapter;

    public VcAdapter(int layoutResId, List<VCModel> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, VCModel rankingModel) {
        baseViewHolder
                .setText(R.id.tv_name, rankingModel.getCustomerInfoVistorName())
                .setText(R.id.tv_phone, rankingModel.getCustomerInfoVistorPhone())
                .setText(R.id.tv_gw, rankingModel.getCustomerInfoReceptionName())
                .setText(R.id.tv_build, rankingModel.getCustomerInfoBuildingName())
                .addOnClickListener(R.id.tv_phone);

    }
}
